<?php
header ( "Content-type: text/html; charset=utf-8" );
$html = '';
foreach ($rows as $v) {
	$html .= "<tr>
	<td>".'<font color=red><b>'.$v['USER_NAME'].'</b></font>&nbsp;'."</td>
	<td>".($v['CALL_TYPE'] == 1 ? '拨出':'拨入')."</td>
	<td><font color=red><b>".$v['TEL_NO']."</b></font>&nbsp;</td>
	<td>".date('Y-m-d H:i:s',strtotime($v['START_TIME']))."</td>
	<td>".ATools::formatSecond($v['DURATION']).'</td>
	<td><a target="_blank" class="play_cord" href="/index.php?c=recordmsg&a=record_play&id='.$v['ID'].'">播放</a></td>
	</tr>';
}
$html = '
您在最近7天已经呼叫过该电话号码，通话记录：
<table width="0" cellspacing="1" cellpadding="0" border="0" class="qi_table">
<tr>
<th>回访人</th>
<th>方式</th>
<th>客户手机</th>
<th>开始时间</th>
<th>通话长度</th>
<th>操作</th>
</tr>'.$html.'</table>';
echo $html;